﻿@model ZoomLa.SQLDAL.SQL.PageSetting
@using ZoomLa.Common
@using ZoomLa.BLL
@using ZoomLa.Controls
@{
    B_Node nodeBll = new B_Node();
    C_TreeView treeMod = new C_TreeView()
    {
        NodeID = "NodeID",
        NodeName = "NodeName",
        NodePid = "ParentID",
        DataSource = nodeBll.GetAllShopNode(),
        liAllTlp = "<a href='StockList'>全部商品</a>",
        LiContentTlp = "<a href='StockList?NodeID=@NodeID'>@NodeName</a>",
        SelectedNode = DataConverter.CLng(Request["NodeID"]).ToString()
    };
}
@section head{
  <title>库存管理</title>
}
@section content{
<ol id="navWrap" class="breadcrumb navbar-fixed-top">
    <li><a href="@(CustomerPageAction.customPath2)Main.aspx">工作台</a></li>
    <li><a href="@(CustomerPageAction.customPath2)Shop/ProductManage.aspx">商城管理</a></li>
    <li class="active"><a href="StockList">库存管理</a></li>
</ol>
<div>
    <div style="margin-bottom:5px;">
        <div class="input-group" style="width:1140px;">
            <select class="form-control mvcparam" id="StockType" style="width:100px;display:inline-block;">
                <option value="-100">全部</option>
                <option value="0">入库</option>
                <option value="1">出库</option>
            </select>
            <input type="text" class="form-control text_md mvcparam" id="proid" placeholder="商品ID"/>
            <input type="text" class="form-control text_md mvcparam" id="proname" placeholder="商品名"/>
            <input type="text" class="form-control text_md mvcparam" id="adduser" placeholder="录入者"/>
            <input type="text" class="form-control text_md mvcparam" id="sdate" placeholder="起始时间" onclick="WdatePicker({ maxDate: '#F{$dp.$D(\'edate\')}' });"/>
            <input type="text" class="form-control text_md mvcparam" id="edate" placeholder="结束时间"onclick="WdatePicker({ minDate: '#F{$dp.$D(\'sdate\')}' });"/>
            <span class="input-group-btn">
                <button type="button" class="btn btn-primary" onclick="mvcpage.load();"><i class="fa fa-search"></i></button>
            </span>
        </div>
    </div>
    <div class="col-md-3" style="padding-left:0;">
        @Html.Partial("_treeview",treeMod)
    </div>
    <div class="col-md-9" style="padding-right:0;">
        @Html.Partial("~/Areas/User/Views/UserShop/StockList_List.cshtml", Model)
    </div>
</div>
}
@section script{
<script src="/JS/DatePicker/WdatePicker.js"></script>
}
